package com.kld.amaptset.conn;

import com.kld.amaptset.GankConfig;
import com.kld.amaptset.model.FunnyData;
import com.kld.amaptset.model.MeiziData;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Path;

/**
 * Created by KELUNGDE on 2017/8/5.
 */

public interface API {
    // http://gank.io/api/data/数据类型/请求个数/第几页
    @GET(value = "data/福利/" + GankConfig.MEIZI_SIZE + "/{page}")
    Observable<MeiziData> getMeiziData(@Path("page") int page);

    @GET("data/休息视频/"+GankConfig.MEIZI_SIZE+"/{page}")
    Observable<FunnyData> getFunnyData(@Path("page") int page);



}
